﻿namespace KinonekoSoftware.CodariaDB.Core
{

    public enum SyncResult
    {
        /// <summary>
        /// 还未被追踪的对象
        /// </summary>
        Never,

        /// <summary>
        /// 已经被追踪的对象
        /// </summary>
        Tracked,

        /// <summary>
        /// 过期的标志，已经同步过，但是又被修改了
        /// </summary>
        Expired,
    }

    /// <summary>
    /// <see cref="DeltaObject"/> 一般指的是大对象的同步，例如<see cref="DataPart"/>
    /// </summary>
    public abstract class DeltaObject : RootObject
    {
        /// <summary>
        /// 如果当前对象从来未通不过，则
        /// </summary>
        public SyncResult SyncFlags { get; set; }
    }
}